<!--动漫页面-->
<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layouts::header"></head>

<body class="bg">
<nav th:replace="layouts::navbar"></nav>
<div class="container">
    <h4>当前动漫</h4>
    <hr>
<!--    新增动漫按钮-->
    <a th:href="@{/projects/new}" class="btn btn-primary btn-sm mb-3">新增动漫</a>
    <br>
    <table class="table table-bordered table-striped">
        <thead class="thead-dark">
        <tr>
        <th>动漫名称</th>
        <th>动漫状态</th>
        <th>出版年代</th>
        <th>动漫简介</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="aProject : ${projects}">
            <td th:text="${aProject.name}"></td>
            <td th:text="${aProject.stage}"></td>
            <td th:text="${aProject.years}"></td>
            <td th:text="${aProject.description}"></td>
        </tr>
        </tbody>
    </table>

</div>


</body>

</html>